package bam.service.impl;

import java.util.Date;
import java.util.List;

import bam.dao.UserDao;
import bam.entity.Useraccount;
import bam.entity.Users;
import bam.service.UserService;
import bam.util.PagingUtil;

public class UserServiceImpl implements UserService {
private UserDao userDao;
public boolean flg = true;

	public Users selUser(int uid) {
		Users users = null;
		try {
			users = userDao.selUser(uid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return users;
	}

	public List<Useraccount> selUseraccountList(int userid) {
		List<Useraccount> list = null;
		try {
			list= userDao.selUseraccountList(userid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return list;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void selUserList(PagingUtil<Useraccount> pu, String sousuo,
			Date firstlogin) throws Exception {
		this.userDao.selUserList(pu, sousuo, firstlogin);
	}

}
